import { PhotoController } from "./controller/PhotoController";
import { PhotoMetadataController } from "./controller/PhotoMetadataController";
import { RoleController } from "./controller/RoleController";
import { UserController } from "./controller/UserController";
export const Routes = [
  {
    method: "get",
    route: "/photos",
    controller: PhotoController,
    action: "all",
  },
  {
    method: "get",
    route: "/photos/:id",
    controller: PhotoController,
    action: "one",
  },
  {
    method: "post",
    route: "/photos",
    controller: PhotoController,
    action: "save",
  },
  {
    method: "delete",
    route: "/photos/:id",
    controller: PhotoController,
    action: "remove",
  },
  {
    method: "get",
    route: "/photoMetadata/:id",
    controller: PhotoMetadataController,
    action: "one",
  },
  {
    method: "delete",
    route: "/photoMetadata/:id",
    controller: PhotoMetadataController,
    action: "remove",
  },

  {
    method: "post",
    route: "/user",
    controller: UserController,
    action: "save",
  },
  {
    method: "get",
    route: "/user/:id",
    controller: UserController,
    action: "one",
  },
  {
    method: "get",
    route: "/users",
    controller: UserController,
    action: "all",
  },
  {
    method: "post",
    route: "/role",
    controller: RoleController,
    action: "save",
  },
  {
    method: "get",
    route: "/role/:id",
    controller: RoleController,
    action: "one",
  },
  {
    method: "get",
    route: "/roles",
    controller: RoleController,
    action: "all",
  },
];
